home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / form.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  146 lines

  1. /* $XConsortium: Form.h,v 1.28 91/05/04 18:59:10 rws Exp $ */
  2.  
  3.  
  4. /***********************************************************
  5. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  6. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  7.  
  8.                         All Rights Reserved
  9.  
  10. Permission to use, copy, modify, and distribute this software and its 
  11. documentation for any purpose and without fee is hereby granted, 
  12. provided that the above copyright notice appear in all copies and that
  13. both that copyright notice and this permission notice appear in 
  14. supporting documentation, and that the names of Digital or MIT not be
  15. used in advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.  
  17.  
  18. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  20. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  21. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  24. SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28. #ifndef _XawForm_h
  29. #define _XawForm_h
  30.  
  31. #include <X11/Constraint.h>
  32. #include <X11/Xfuncproto.h>
  33.  
  34. /***********************************************************************
  35.  *
  36.  * Form Widget
  37.  *
  38.  ***********************************************************************/
  39.  
  40. /* Parameters:
  41.  
  42.  Name             Class        RepType        Default Value
  43.  ----             -----        -------        -------------
  44.  background         Background        Pixel        XtDefaultBackground
  45.  border             BorderColor    Pixel        XtDefaultForeground
  46.  borderWidth         BorderWidth    Dimension    1
  47.  defaultDistance     Thickness        int        4
  48.  destroyCallback     Callback        Pointer        NULL
  49.  height             Height        Dimension    computed at realize
  50.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  51.  sensitive         Sensitive        Boolean        True
  52.  width             Width        Dimension    computed at realize
  53.  x             Position        Position    0
  54.  y             Position        Position    0
  55.  
  56. */
  57.  
  58. /* Constraint parameters:
  59.  
  60.  Name             Class        RepType        Default Value
  61.  ----             -----        -------        -------------
  62.  bottom             Edge        XtEdgeType    XtRubber
  63.  fromHoriz         Widget        Widget        (left edge of form)
  64.  fromVert         Widget        Widget        (top of form)
  65.  horizDistance         Thickness        int        defaultDistance
  66.  left             Edge        XtEdgeType    XtRubber
  67.  resizable         Boolean        Boolean        False
  68.  right             Edge        XtEdgeType    XtRubber
  69.  top             Edge        XtEdgeType    XtRubber
  70.  vertDistance         Thickness        int        defaultDistance
  71.  
  72. */
  73.  
  74.  
  75. #ifndef _XtStringDefs_h_
  76. #define XtNtop "top"
  77. #define XtRWidget "Widget"
  78. #endif
  79.  
  80. #define XtNdefaultDistance "defaultDistance"
  81. #define XtNbottom "bottom"
  82. #define XtNleft "left"
  83. #define XtNright "right"
  84. #define XtNfromHoriz "fromHoriz"
  85. #define XtNfromVert "fromVert"
  86. #define XtNhorizDistance "horizDistance"
  87. #define XtNvertDistance "vertDistance"
  88. #define XtNresizable "resizable"
  89.  
  90. #define XtCEdge "Edge"
  91. #define XtCWidget "Widget"
  92.  
  93. #ifndef _XawEdgeType_e
  94. #define _XawEdgeType_e
  95. typedef enum {
  96.     XawChainTop,        /* Keep this edge a constant distance from
  97.                    the top of the form */
  98.     XawChainBottom,        /* Keep this edge a constant distance from
  99.                    the bottom of the form */
  100.     XawChainLeft,        /* Keep this edge a constant distance from
  101.                    the left of the form */
  102.     XawChainRight,        /* Keep this edge a constant distance from
  103.                    the right of the form */
  104.     XawRubber            /* Keep this edge a proportional distance
  105.                    from the edges of the form*/
  106. } XawEdgeType;
  107. #endif /* _XawEdgeType_e */
  108.  
  109. /*
  110.  * Unfortunatly I missed this definition for R4, so I cannot
  111.  * protect it with XAW_BC, it looks like this particular problem is
  112.  * one that we will have to live with for a while.
  113.  *
  114.  * Chris D. Peterson - 3/23/90.
  115.  */
  116.  
  117. #define XtEdgeType XawEdgeType
  118.  
  119. #define XtChainTop XawChainTop
  120. #define XtChainBottom XawChainBottom
  121. #define XtChainLeft XawChainLeft
  122. #define XtChainRight XawChainRight
  123. #define XtRubber XawRubber
  124.  
  125. typedef struct _FormClassRec    *FormWidgetClass;
  126. typedef struct _FormRec        *FormWidget;
  127.  
  128. extern WidgetClass formWidgetClass;
  129.  
  130. _XFUNCPROTOBEGIN
  131.  
  132. extern void XawFormDoLayout(
  133. #if NeedFunctionPrototypes
  134.     Widget        /* w */,
  135. #if NeedWidePrototypes
  136.     /* Boolean */ int    /* do_layout */
  137. #else
  138.     Boolean        /* do_layout */
  139. #endif
  140. #endif
  141. );
  142.  
  143. _XFUNCPROTOEND
  144.  
  145. #endif /* _XawForm_h */
  146.